#define  _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<string.h>
int main()
{
	int arr[1000] = { 0 };
	int i, tmp, n = 0,x;
	for (i = 0; i < 1000 ; i++)
	{
		scanf("%d ", &arr[i]);
		if (arr[i] % 2 == 0)
			continue;
		if (arr[i] % 2 != 0)
		{
			tmp = arr[n];
			arr[n] = arr[i];
			arr[i] = tmp;
			n++;
		}
	}
	x = i + 1;
	for (i = 0; i < x; i++)
	{
		printf("%d", arr[i]);
	}
	return 0;
}